package com.syyo.gulimall.order.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.util.Date;

/**
 * @author syyo
 * @email syyo@gmail.com
 * @date 2021-01-20 10:01:14
 */
@Data
@TableName("mq_message")
public class MqMessageEntity extends Model<MqMessageEntity> {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "message_id", type = IdType.AUTO)
    private String messageId;
    /**
     *
     */
    private String content;
    /**
     *
     */
    private String toExchane;
    /**
     *
     */
    private String routingKey;
    /**
     *
     */
    private String classType;
    /**
     * 0-新建 1-已发送 2-错误抵达 3-已抵达
     */
    private Integer messageStatus;
    /**
     *
     */
    private Date createTime;
    /**
     *
     */
    private Date updateTime;

}
